package com.zycfc.zsf.cloud.core.domain.auth;

import java.io.*;

public class ZsfAuthRole implements Serializable
{
    private static final long serialVersionUID = 4994812084511651548L;
    private String roleId;
    private String roleNo;
    private String roleName;
    private String sts;
    
    public ZsfAuthRole() {
    }
    
    public ZsfAuthRole(final String roleId, final String roleNo, final String roleName, final String sts) {
        this.roleId = roleId;
        this.roleNo = roleNo;
        this.roleName = roleName;
        this.sts = sts;
    }
    
    public String getRoleId() {
        return this.roleId;
    }
    
    public String getRoleNo() {
        return this.roleNo;
    }
    
    public String getRoleName() {
        return this.roleName;
    }
    
    public String getSts() {
        return this.sts;
    }
    
    public void setRoleId(final String roleId) {
        this.roleId = roleId;
    }
    
    public void setRoleNo(final String roleNo) {
        this.roleNo = roleNo;
    }
    
    public void setRoleName(final String roleName) {
        this.roleName = roleName;
    }
    
    public void setSts(final String sts) {
        this.sts = sts;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof ZsfAuthRole)) {
            return false;
        }
        final ZsfAuthRole other = (ZsfAuthRole)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$roleId = this.getRoleId();
        final Object other$roleId = other.getRoleId();
        Label_0065: {
            if (this$roleId == null) {
                if (other$roleId == null) {
                    break Label_0065;
                }
            }
            else if (this$roleId.equals(other$roleId)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$roleNo = this.getRoleNo();
        final Object other$roleNo = other.getRoleNo();
        Label_0102: {
            if (this$roleNo == null) {
                if (other$roleNo == null) {
                    break Label_0102;
                }
            }
            else if (this$roleNo.equals(other$roleNo)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$roleName = this.getRoleName();
        final Object other$roleName = other.getRoleName();
        Label_0139: {
            if (this$roleName == null) {
                if (other$roleName == null) {
                    break Label_0139;
                }
            }
            else if (this$roleName.equals(other$roleName)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$sts = this.getSts();
        final Object other$sts = other.getSts();
        if (this$sts == null) {
            if (other$sts == null) {
                return true;
            }
        }
        else if (this$sts.equals(other$sts)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof ZsfAuthRole;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $roleId = this.getRoleId();
        result = result * 59 + (($roleId == null) ? 43 : $roleId.hashCode());
        final Object $roleNo = this.getRoleNo();
        result = result * 59 + (($roleNo == null) ? 43 : $roleNo.hashCode());
        final Object $roleName = this.getRoleName();
        result = result * 59 + (($roleName == null) ? 43 : $roleName.hashCode());
        final Object $sts = this.getSts();
        result = result * 59 + (($sts == null) ? 43 : $sts.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "ZsfAuthRole(roleId=" + this.getRoleId() + ", roleNo=" + this.getRoleNo() + ", roleName=" + this.getRoleName() + ", sts=" + this.getSts() + ")";
    }
}
